﻿using System;
using System.Collections;
using System.Collections.Generic;
using EraNet.Core;
using EraNet.Core.Model.SysManage;

namespace EraNet.Services.SysManage
{
    public partial interface IDictionaryService
    {
        /// <summary>
        /// 插入字典信息
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int InsertDictionary(SysDictionary model);
        /// <summary>
        /// 批量插入字典信息
        /// </summary>
        /// <param name="cards"></param>
        /// <returns></returns>
        int InsertDictionary(IList<SysDictionary> model, bool IsAstrict);
        /// <summary>
        /// 删除字典信息
        /// </summary>
        /// <param name="dictionaryId"></param>
        /// <returns></returns>
        int DeleteDictionary(int dictionaryId);
        /// <summary>
        /// 根据卡ID获取字典信息
        /// </summary>
        /// <param name="cardId"></param>
        /// <returns></returns>
        SysDictionary GetDictionaryById(int dictionaryId);
        /// <summary>
        /// 根据指定的KEY值获取指定数据
        /// </summary>
        /// <param name="Keys"></param>
        /// <returns></returns>
        IList<SysDictionary> GetDictionaryByKey(string Keys);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="TypeKey"></param>
        /// <returns></returns>
        IList<SysDictionary> GetDictionaryByTypeKey(string TypeKey);
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        IList<SysDictionary> GetAllDictionary();
        /// <summary>
        /// 
        /// </summary>
        /// <param name="cardNo"></param>
        /// <param name="pageSize"></param>
        /// <param name="pageIndex"></param>
        /// <param name="isShowHide"></param>
        /// <returns></returns>
        IPagedList<SysDictionary> GetAllDictionary(string Keys, int pageSize, int pageIndex, bool isShowHide);     

    }
}
